package cate.game.pvp.throne.data.rival;

import cate.game.play.part.PlaySide;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("选拔赛机器人阵容")
public class TBRivalPs {

	public static final String COLLECTION = "tb-trial-ps";

	@NoteField("分组")
	public int group;

	@NoteField("阵容")
	public PlaySide playSide;

	public TBRivalPs() {
	}

	public TBRivalPs(int group, PlaySide playSide) {
		this.group = group;
		this.playSide = playSide;
	}

	public long totalPower() {
		return playSide.snapshot.base.power;
	}

	public void read(TBRivalPs data) {
		this.playSide = data.playSide;
	}
}
